<template>
  <view class="box">
    <button @click="callChildMethod">调用子组件的方法</button>
  </view>
</template>

<script setup>
import { ref, onMounted } from 'vue';

const childRef = ref(null);

const callChildMethod = () => {
	const subnvue = uni.getSubNVueById('test');
	subnvue.show('slide-in-left', 300, function(){  
	    // 打开后进行一些操作...  
	    //   
		console.log("111")
	});  
};


</script>

<style lang="scss" scoped>
	.box{
		margin-top: 100rpx;
		
	}
</style>